<div class="nav-bar">
    <div class="nav-bar-content w">
        <div class="top-left">
           [#-- <a href="${base}/index.jhtml" class="home">360跨界商萌首页</a>--]
            <div class="fl">
                <span class="home">您当前所在的门店是：<b class="top_cor">${(curr_store.cityName)!''}-${(curr_store.name)!''}</b></span>
                <span>
                    切换地区：
                    <select id="sel_store_city">
                        <option value ="${(curr_store.cityId)!''}">${(curr_store.cityName)!''}</option>
                        [#list citys as city]
                            [#if curr_store.cityId != city.id]
                            <option value ="${(city.id)!''}">${(city.name)!''}</option>
                            [/#if]
                        [/#list]
                    </select>
                </span>
                <span>
                    切换门店：
                    <select id="sel_store">
                        <option value ="${(curr_store.id)!''}">${(curr_store.name)!''}</option>
                        [#if curr_store?? && curr_store.others?size > 0]
                            [#list curr_store.others as store]
                                [#if store.id != curr_store.id]
                                    <option value ="${(store.id)!''}">${(store.name)!''}</option>
                                [/#if]
                            [/#list]
                        [/#if]
                    </select>
                </span>
            </div>

        </div>
        <div class="top-right">
            <div class="no-login">
                <ul>
                    <li>
                        <span>您好，<span id="loginName"></span> </span><span>&nbsp;</span><span id="loginBtn"><a href="${base}/login.jhtml">请登录</a></span>
                    </li>
                    <li>
                        <span id="registerBtn"><a href="${base}/register.jhtml">免费注册</a></span>
                    </li>
                    <li>
                        <span id="logoutBtn"><a href="javascript:logout();">退出</a></span>
                    </li>
                    <li class="my-hyh"><a href="${base}/member/index.jhtml" target="_blank" class="t">我的360跨界商萌</a>
                        <ul>
                        [#list navigation("attrName","member") as bean]
                            <li><a href="${bean.href}" target="_blank">${bean.name}</a></li>
                        [/#list]
                        </ul>
                    </li>
                </ul>
            </div>

           [#-- <li class="my-hyh"><a href="${base}/member/index.jhtml" target="_blank" class="t">我的360跨界商萌</a>
                <ul>
	            	[#list navigation("attrName","member") as bean]
	                    <li><a href="${bean.href}" target="_blank">${bean.name}</a></li>
	                [/#list]
                </ul>
            </li>
            <li class="cart">
                <a href="${base}/cart/list.jhtml" target="_blank"><span>我的购物车</span><strong id="cq">0</strong><span>件</span></a>
            </li>
            <li class="g-b">
                <a href="${base}/member/favorite.jhtml">收藏夹</a>
            </li>--]
        </div>
        <div class="clear"></div>
        <script>

        (function() {
            $(function() {
                $('.my-hyh').mouseover(function() {
                    return $(this).addClass('hover');
                }).mouseout(function() {
                    return $(this).removeClass('hover');
                });

                $("#sel_store_city").change(function(){
                    $.get( base+"/city/stores.jhtml",{"cityId":$(this).val()},function(data){
                        $.cookie('curr_store', data, { expires: 7 });
                        location.href = base + "/index.jhtml";
                    });
                });
                $("#sel_store").change(function(){
                    $.cookie('curr_store', $(this).val(), { expires: 7 });
                    location.href = base + "/index.jhtml";
                });
            });
        }).call(this);

            /*$(function(){

            });*/
        </script>
    </div>
</div>
